﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"  schema="dbo"
                   assembly="OpenSda.Agilcont.Common.Data.Entities"
                   namespace="OpenSda.Agilcont.Common.Data.Entities"
                   default-lazy="false" default-cascade="none">

  <class name="CajaVentanilla" table="common_Caja_Ventanilla">
        <id name="Identity" column="EmpresaId"  type="guid">
          <generator class="guid.comb"/>
        </id>

    <property name="Nombre"                      column="Codigo"        type="String" not-null="false"/>
    <property name="TicketeraPropiaDisponible"   column="Ruc"           type="String" length="50" />
    <property name="Ip"                         column="RazonSocial"    type="String" length="50" />
    <property name="SerieTicket"                column="NombreComun"    type="String" length="50" />
    <property name="SerieBoleta"                column="Siglas"         type="String" length="50" />
    <property name="SerieFactura"               column="Direccion"      type="String" length="50" />
    <property name="SerieNotaCredito"           column="Fonos"          type="String" length="50" />
    <property name="SerieNotaDebito"            column="Logo"           type="String" length="50" />
    <property name="SerieGuiaRemision"          column="Eslogan"        type="String" length="50" />
    <property name="EstadoActivo"                column="EstadoActivo"  type="String" length="50" />
    <property name=" Logo"                       column=" Logo"         type="String" length="50" />

<many-to-one name="AgenciaRef" column="AgenciaId" class="OpenSda.Agilcont.Common.Data.Entities.Agencia, OpenSda.Agilcont.Common.Data.Entities" not-null="true" />
<many-to-one name="CajeroRef" column="CajeroId" class="OpenSda.Agilcont.Common.Data.Entities.Agencia, OpenSda.Agilcont.Common.Data.Entities" not-null="true" />    

  </class>
</hibernate-mapping>
